package com.lulu.gateway;

import com.lulu.common.service.RouteRefreshService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wlc
 * @version 1.0
 */
@RestController
@RequestMapping("/route")
public class RouteController {

    @Autowired
    private RouteRefreshService routeRefreshService;

    @GetMapping("/refresh")
    public String refresh(){
        routeRefreshService.refresh();
        return "ok!";
    }
}
